package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbobj_field")
public class DevtZbobjFieldEntity {
    private String id;
    private String zbobjid;
    private String zbobjname;
    private String zbobjcode;
    private String modelname;
    private String modelcode;
    private String modelfieldname;
    private String modelfieldcode;
    private String modelid;
    
    @Id
    @Column(name = "ID", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "zbobjid", nullable = true, length = 256)
    public String getZbobjid() {
        return zbobjid;
    }
    
    public void setZbobjid(String zbobjid) {
        this.zbobjid = zbobjid;
    }
    
    @Basic
    @Column(name = "zbobjname", nullable = true, length = 256)
    public String getZbobjname() {
        return zbobjname;
    }
    
    public void setZbobjname(String zbobjname) {
        this.zbobjname = zbobjname;
    }
    
    @Basic
    @Column(name = "zbobjcode", nullable = true, length = 256)
    public String getZbobjcode() {
        return zbobjcode;
    }
    
    public void setZbobjcode(String zbobjcode) {
        this.zbobjcode = zbobjcode;
    }
    
    @Basic
    @Column(name = "modelname", nullable = true, length = 256)
    public String getModelname() {
        return modelname;
    }
    
    public void setModelname(String modelname) {
        this.modelname = modelname;
    }
    
    @Basic
    @Column(name = "modelcode", nullable = true, length = 256)
    public String getModelcode() {
        return modelcode;
    }
    
    public void setModelcode(String modelcode) {
        this.modelcode = modelcode;
    }
    
    @Basic
    @Column(name = "modelfieldname", nullable = true, length = 256)
    public String getModelfieldname() {
        return modelfieldname;
    }
    
    public void setModelfieldname(String modelfieldname) {
        this.modelfieldname = modelfieldname;
    }
    
    @Basic
    @Column(name = "modelfieldcode", nullable = true, length = 256)
    public String getModelfieldcode() {
        return modelfieldcode;
    }
    
    public void setModelfieldcode(String modelfieldcode) {
        this.modelfieldcode = modelfieldcode;
    }
    
    @Basic
    @Column(name = "modelid", nullable = true, length = 256)
    public String getModelid() {
        return modelid;
    }
    
    public void setModelid(String modelid) {
        this.modelid = modelid;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbobjFieldEntity that = (DevtZbobjFieldEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(zbobjid, that.zbobjid) && Objects.equals(zbobjname, that.zbobjname) && Objects.equals(zbobjcode, that.zbobjcode) && Objects.equals(modelname, that.modelname) && Objects.equals(modelcode, that.modelcode) && Objects.equals(modelfieldname, that.modelfieldname) && Objects.equals(modelfieldcode, that.modelfieldcode) && Objects.equals(modelid, that.modelid);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, zbobjid, zbobjname, zbobjcode, modelname, modelcode, modelfieldname, modelfieldcode, modelid);
    }
}
